package com.rabbit.customer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 消费者1
 */
@Component
@RabbitListener(queues = "y3")
public class Customer3 {

    @RabbitHandler
    public void getMsg(String msg){
        System.out.println("y3:"+msg);
    }
}
